@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* ============= Define CSS Variables ============== */
:root {
  --color-input-1: hsl(0, 0%, 100%);
  --color-input-2: hsl(349, 100%, 31%);
  --color-input-3: hsl(0, 100%, 90%);
  --color-dark: hsl(240, 12%, 8%);
  --text-dark: hsl(240, 8%, 18%);
  --text-light: hsl(210, 17%, 98%);
  --text-hover: var(--red-soft);
  --black: hsl(0, 0%, 0%);
  --white: hsl(0, 0%, 100%);
  --card-custom-background: hsl(328, 100%, 84%);

  /* === Soft Color === */
  --red-soft: hsl(328, 100%, 84%);
  --yellow-soft: hsl(29, 100%, 84%);
  --green-soft: hsl(120, 100%, 84%);
  --blue-soft: hsl(240, 100%, 84%);

  /* === Warm Color === */
  --warm1: rgba(254, 216, 7, 0.5);
  --warm2: rgba(255, 168, 8, 0.5);
  --warm3: rgba(254, 75, 8, 0.5);
  --warm4: rgba(254, 9, 8, 0.5);
  --warm5: rgba(221, 26, 66, 0.5);

  /* === Cool Color === */
  --cool1: rgba(50, 159, 91, 0.6);
  --cool2: rgba(43, 132, 76, 0.7);
  --cool3: rgba(35, 107, 60, 0.8);
  --cool4: rgba(26, 80, 46, 0.9);
  --cool5: rgba(21, 53, 32, 1);
  --cool6: rgba(100, 170, 255, 0.6);
  --cool7: rgba(100, 100, 255, 0.7);
  --cool8: rgba(73, 73, 197, 0.8);
  --cool9: rgba(48, 48, 97, 0.9);
  --cool10: rgba(21, 22, 53, 1);

  /* === Card White === */
  --card-white:
    linear-gradient(rgb(255, 255, 255) 0%,
      rgb(234, 234, 234) 100%);

  --outline-shadow:
    rgba(0, 0, 0, 0.05) 0px 4px 2px 0px,
    rgba(0, 0, 0, 0.09) 0px 2px 2px 0px,
    rgba(0, 0, 0, 0.1) 0px 1px 1px 0px;

  --card-shadow: 3px 3px 15px rgba(0, 0, 0, 0.5);

  --inset-shadow: inset 5px 5px 20px rgba(0, 0, 0, 0.5);


  /* === Card Black === */
  --card-black:
    linear-gradient(rgb(65, 65, 65) 0%,
      rgb(30, 30, 30) 100%);

  --outline-white:
    rgba(255, 255, 255, .8) 0px 4px 2px 0px,
    rgba(219, 219, 219, .8) 0px 2px 2px 0px,
    rgba(218, 218, 218, .8) 0px 1px 1px 0px;

  /* ============= Typography ============== */

  --ff-poppins: 'Poppins', sans-serif;

  --fs-1: 30px;
  --fs-2: 28px;
  --fs-3: 24px;
  --fs-4: 20px;
  --fs-5: 18px;
  --fs-6: 16px;
  --fs-7: 14px;

  --fw-500: 500;
  --fw-700: 700;
  --fw-800: 800;
  --fw-900: 900;

  /* ============= Transisi ============== */
  --transition: 0.4s ease;

  /* ============= Section Padding ============== */
  --section-padding: clamp(2rem, 5vw, 5rem) 1rem;

}


/* ============= Reset ============== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

li {
  list-style: none;
}

a {
  text-decoration: none;
}

a,
span,
button,
i {
  display: block;
}

img {
  display: block;
  width: 100%;
}

button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-input-2);
  min-height: 100dvh;
  font-family: var(--ff-poppins);
}

h1 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  line-height: 1.2;
  text-align: center;
  color: white;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.3;
}

h3 {
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  line-height: 1.4;
}

p {
  font-size: clamp(1rem, 3vw, 1.25rem);
  line-height: 1.6;
  text-align: center;
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 1rem;
}

.text-content {
  text-align: center;
  margin-bottom: 1rem;
}

.card-title {
  text-align: center;
  margin-bottom: 1rem;
  font-weight: var(--fw-700);
  text-transform: capitalize;
  font-family: var(--ff-poppins);
  font-size: var(--fs-4);
}

.card-description {
  text-align: center;
  margin-bottom: 1rem;
  font-family: var(--ff-poppins);
  font-size: var(--fs-5);
}

/* ============= Custom Card ============== */
.text-white-card {
  width: 100%;
  background: var(--card-white);
  box-shadow: var(--card-shadow), var(--outline-shadow);
  border-radius: 2rem;
  padding: .8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.text-white-card:hover {
  box-shadow: var(--inset-shadow);
}

.text-white-card i {
  font-size: var(--fs-1);
  margin-block: 1rem;
}

.text-black-card {
  width: 100%;
  color: aliceblue;
  background: var(--card-black);
  box-shadow: var(--outline-white);
  border-radius: 2rem;
  padding: .8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.text-black-card i {
  font-size: var(--fs-1);
  margin-block: 1rem;
}

.text-custom-card {
  width: 100%;
  background: var(--card-custom-background);
  box-shadow: var(--card-shadow), var(--outline-shadow);
  border-radius: 2rem;
  padding: .8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.text-custom-card:hover {
  box-shadow: var(--inset-shadow);
}

.text-custom-card i {
  font-size: var(--fs-1);
  margin-block: 1rem;
}

.testimoni-white-card {
  width: 100%;
  background: var(--card-white);
  box-shadow: var(--card-shadow), var(--outline-shadow);
  border-radius: 1rem;
  padding: .8rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.testimoni-black-card {
  width: 100%;
  background: var(--card-black);
  box-shadow: var(--outline-white);
  color: aliceblue;
  border-radius: 1rem;
  padding: .8rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.testimoni-custom-card {
  width: 100%;
  background: var(--card-custom-background);
  box-shadow: var(--card-shadow), var(--outline-shadow);
  border-radius: 1rem;
  padding: .8rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.testimoni-white-card:hover,
.testimoni-black-card:hover,
.testimoni-custom-card:hover {
  box-shadow: var(--inset-shadow);
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: inherit;
}

.card-top {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  color: inherit;
}

.card-top img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: var(--outline-shadow);
}

.card-profile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .3rem;
  color: inherit;
}

.card-profile h3 {
  font-family: var(--ff-poppins);
  font-size: var(--fs-6);
  color: inherit;
}

.stars {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .5rem;
  color: var(--warm4);
}

.testimoni-black-card .stars {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .5rem;
  color: inherit;
}

.card-bottom {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.card-bottom p {
  font-family: var(--ff-poppins);
  font-size: var(--fs-6);
  color: inherit;
  margin-bottom: 1rem;
}

/* ============= First Button ============== */
.button-1 {
  font-family: var(--ff-poppins);
  font-size: var(--fs-5);
  background: var(--color-input-2);
  color: white;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  border: none;
  border-radius: 25px;
  box-shadow: var(--inset-shadow);
  transition: all 0.3s;
  cursor: pointer;
  gap: 1rem;
}

.button-1 i {
  font-size: var(--fs-4);
}

.button-1:hover {
  transform: translateY(-3px);
  box-shadow: var(--outline-shadow), var(--outline-shadow);
}

.button-1:hover i {
  color: var(--color-input-3);
}

/* ============= Second Button ============== */
.button-2 {
  width: 140px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(to right, #77530a, #ffd277, #77530a, #77530a, #ffd277, #77530a);
  background-size: 250%;
  background-position: left;
  color: #ffd277;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition-duration: 1s;
  overflow: hidden;
}

.button-2::before {
  position: absolute;
  content: "ORDER NOW";
  color: #ffd277;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 97%;
  height: 90%;
  border-radius: 8px;
  transition-duration: 1s;
  background-color: rgba(0, 0, 0, 0.842);
  background-size: 200%;
}

.button-2:hover {
  background-position: right;
  transition-duration: 1s;
}

.button-2:hover::before {
  background-position: right;
  transition-duration: 1s;
}

.button-2:active {
  transform: scale(0.95);
}


/* ================ Header/Navbar ================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  z-index: 20;
  align-items: center;
  padding: 25px 5%;
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--outline-shadow);
}

.header::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: #131217;
  z-index: -1;
}

.header .logo {
  width: 150px;
}

.logo img {
  width: 100%;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar a {
  color: var(--white);
  margin-left: 25px;
  font-weight: var(--fw-500);
  font-size: var(--fs-4);
  align-items: center;
}

.nav-icon {
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  display: none;
  position: absolute;
  right: 5%;
}

.navbar a:hover,
.nav-icon:hover {
  color: var(--color-input-3);
}

input#menu-toggle {
  display: none;
}


/* ========== Breakpoints Header ======== */
@media (min-width: 769px) and (max-width: 950px) {
  .header {
    padding: 18px 5%;
  }

  .header .logo {
    width: 115px;
  }

  .navbar a {
    margin-left: 10px;
    font-weight: var(--fw-500);
    font-size: var(--fs-5);
  }
}

/* ========== Breakpoints Navbar ======== */
@media (max-width: 880px) {
  .nav-icon {
    display: inline-flex;
    position: absolute;
    right: 5%;
  }

  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(18, 18, 23, 0.8);
    backdrop-filter: blur(8px);
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom-left-radius: 2.5rem;
    border-bottom-right-radius: 2.5rem;
    box-shadow: var(--inset-shadow);
    gap: 1.5rem;
    font-size: var(--fs-4);
    opacity: 0;
    transform: translateY(-10px);
  }

  .navbar a {
    opacity: 0;
    transition: opacity 0.2s ease 0.1s, transform 0.2s ease 0.1s;
    transform: translateY(0px);
  }

  .navbar button {
    width: auto;
    text-align: center;
    margin-inline: auto;
  }

  #menu-toggle:checked~.navbar {
    height: 25rem;
    padding: 2rem 0;
    opacity: 1;
    transform: translateY(0);
  }

  #menu-toggle:checked~.navbar a {
    opacity: 1;
    transform: translateY(0);
  }

  #menu-toggle:not(:checked)~.navbar {
    transition: height 0.5s ease, opacity 0.2s ease 0.15s, transform 0.2s ease 0.15s;
    opacity: 0;
    transform: translateY(0px);
  }

  #menu-toggle:not(:checked)~.navbar a {
    opacity: 0;
    transform: translateY(0px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
}

/* ========== Section 1 ======== */
.section-1 {
  padding-top: 90px;
  background-color: #fe4e65;
}



/* ========== Section 2 ======== */
.section-2 {
  padding: var(--section-padding);
  background-color: var(--color-input-2);
  color: white;
}

.logo-containers {
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: center;
  gap: 20px;
}

.logo-containers img {
  max-width: 100px;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-top: 20px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
  /* animasi default nonaktif */
}

.logo-containers.animate img:nth-child(1) {
  animation: tada 1s ease;
  animation-delay: 6s;
}

.logo-containers.animate img:nth-child(2) {
  animation: tada 1s ease;
  animation-delay: 7s;
}

@keyframes tada {
  0% {
    transform: scale(1);
  }

  10%,
  20% {
    transform: scale(0.9) rotate(-3deg);
  }

  30%,
  50%,
  70%,
  90% {
    transform: scale(1.1) rotate(3deg);
  }

  40%,
  60%,
  80% {
    transform: scale(1.1) rotate(-3deg);
  }

  100% {
    transform: scale(1) rotate(0);
  }
}

.intro-page {
  display: grid;
  gap: 2rem;
  overflow: hidden;
  background-color: var(--color-input-3);
  margin-top: 20px;
  border-radius: 20px;
  box-shadow: var(--inset-shadow);
  margin-bottom: 10px;
}

.intro-page h2 {
  color: #000;
  text-align: center;
  margin: 20px 15px 10px;
}

.intro-page span {
  color: #850213;
  font-size: var(--fs-3);
}

.intro-page img {
  max-width: 500px;
  margin-inline: auto;
  padding-top: 10px;
  padding-inline: 10px;
  border-radius: inherit;
}

.intro-flexbox{
  display: flex;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.intro-flexbox h2{
  margin: 10px 15px 20px;
}

.intro-flexbox h3{
  margin: 10px 15px 20px;
}

.intro-flexbox span{
  color: #ffd668;
  font-size: var(--fs-3);
}

.intro-gallery{
  background-color: var(--color-input-3);
  border-radius: 20px;
  box-shadow: var(--inset-shadow);
  margin-bottom: 10px;
}

.intro-gallery h2{
  color: #000;
  margin-top: 20px;
}

.cashback-fleet {
  display: flex;
  justify-content: center;
  align-items: center; 
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 50%;
}

.fleet-wrapper {
  display: flex;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  padding-inline: clamp(1rem, 5vw, 3rem);
  padding-bottom: 15px;
}

.fleet-wrapper img {
  scroll-snap-align: center;
  width: clamp(300px, 50%, 500px);
  height: auto;
  border-radius: 10px;
  flex-shrink: 0;
}

.four-image {
  display: grid;
  overflow: hidden;
  background-color: var(--color-input-3);
  margin-top: 20px;
  border-radius: 20px;
  box-shadow: var(--inset-shadow);
  margin-bottom: 10px;
}

.four-image img {
  max-width: 500px;
  margin-inline: auto;
}

@media (min-width: 540px) {
  .intro-page {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .four-image {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }
}


/* ========== Section 3 ======== */
.section-3 {
  padding: var(--section-padding);
  background-color: var(--color-input-3);
  color: #850213;
  text-align: center;
}

.video-mova {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 25px;
}

.video-mova iframe {
  max-width: 100%;
  height: 640px;
  border-radius: 20px;
}

/* ========== Section 4 ======== */
.section-4 {
  padding: var(--section-padding);
  background-color: var(--color-input-2);
  color: white;
  text-align: center;
  align-items: center;
}

.vip-content {
  background: url(/img/vip-card.jpg) no-repeat;
  background-size: cover;
  padding: 1rem;
  margin: 0 auto;
  border-radius: 30px;
  box-shadow: var(--inset-shadow), var(--outline-shadow), var(--card-shadow);
}

.vip-content h3 {
  color: #ffd668;
}

.pricing {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 50px;

  .plan {
    background: linear-gradient(rgb(65, 65, 65) 0%,
        rgb(30, 30, 30) 100%);
    padding: .5rem;
    margin: 18px;
    border-radius: 5px;
    text-align: center;
    transition: 0.3s;
    cursor: pointer;
    box-shadow: var(--outline-shadow), var(--card-shadow);

    .price {
      margin-bottom: 1rem;
      font-size: 30px;
    }

    ul.features {
      list-style-type: none;
      text-align: left;
      padding: 0;
      margin: 0;
    }

    ul.features li {
      display: flex;
      align-items: center;
      gap: 8px;
      line-height: 1.6;
    }

    ul.features li .ri-checkbox-circle-fill {
      color: #6ab04c;
    }

    ul.features li .ri-close-circle-fill {
      color: #eb4d4b;
    }

    button {
      border: none;
      width: 100%;
      padding: 12px 35px;
      margin-top: 1rem;
      background-color: #ffcc6c;
      color: #000;
      border-radius: 5px;
      cursor: pointer;
      font-size: 16px;
      font-weight: var(--fw-700);
    }

    &.popular {
      border: 2px solid #ffcc6c;
      position: relative;
      transform: scale(1.08);

      span {
        position: absolute;
        top: -28px;
        left: 50%;
        transform: translateX(-50%);
        background-color: #ffcc6c;
        color: #000;
        padding: 4px 20px;
        font-size: 18px;
        border-radius: 5px;
      }
    }

    &:hover {
      box-shadow: var(--inset-shadow);
    }
  }
}

/* ========== CTA ======== */
.cta {
  padding: var(--section-padding);
  background-color: var(--color-dark);
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  color: aliceblue;
  gap: 1rem;
}

.cta h3 {
  margin-bottom: 1rem;
}

.cta-button {
  --primary: var(--color-input-1);
  --neutral-1: #f7f8f7;
  --neutral-2: #e7e7e7;
  --radius: 14px;

  cursor: pointer;
  border-radius: var(--radius);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
  border: none;
  box-shadow: 0 0.5px 0.5px 1px rgba(255, 255, 255, 0.2),
    0 10px 20px rgba(0, 0, 0, 0.2), 0 4px 5px 0px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  min-width: 200px;
  padding: 20px;
  height: 60px;
  font-family: "Galano Grotesque", Poppins, Montserrat, sans-serif;
  font-style: normal;
  font-size: 18px;
  font-weight: 600;
}

.cta-button:hover {
  transform: scale(1.02);
  box-shadow: 0 0 1px 2px rgba(255, 255, 255, 0.3),
    0 15px 30px rgba(0, 0, 0, 0.3), 0 10px 3px -3px rgba(0, 0, 0, 0.04);
}

.cta-button:active {
  transform: scale(1);
  box-shadow: 0 0 1px 2px rgba(255, 255, 255, 0.3),
    0 10px 3px -3px rgba(0, 0, 0, 0.2);
}

.cta-button:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 2.5px solid transparent;
  background: linear-gradient(var(--neutral-1), var(--neutral-2)) padding-box,
    linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45)) border-box;
  z-index: 0;
  transition: all 0.4s ease;
}

.cta-button:hover::after {
  transform: scale(1.05, 1.1);
  box-shadow: inset 0 -1px 3px 0 rgba(255, 255, 255, 1);
}

.cta-button::before {
  content: "";
  inset: 7px 6px 6px 6px;
  position: absolute;
  background: linear-gradient(to top, var(--neutral-1), var(--neutral-2));
  border-radius: 30px;
  filter: blur(0.5px);
  z-index: 2;
}

.state p {
  display: flex;
  align-items: center;
  justify-content: center;
}

.state .icon {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  transform: scale(1.25);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.state .icon svg {
  overflow: visible;
}

/* Outline */
.outline {
  position: absolute;
  border-radius: inherit;
  overflow: hidden;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  inset: -2px -3.5px;
}

.outline::before {
  content: "";
  position: absolute;
  inset: -100%;
  background: conic-gradient(from 180deg,
      transparent 60%,
      white 80%,
      transparent 100%);
  animation: spin 2s linear infinite;
  animation-play-state: paused;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.cta-button:hover .outline {
  opacity: 1;
}

.cta-button:hover .outline::before {
  animation-play-state: running;
}

/* Letters */
.state p span {
  display: block;
  opacity: 0;
  animation: slideDown 0.8s ease forwards calc(var(--i) * 0.03s);
}

.cta-button:hover p span {
  opacity: 1;
  animation: wave 0.5s ease forwards calc(var(--i) * 0.02s);
}

.cta-button:focus p span {
  opacity: 1;
  animation: disapear 0.6s ease forwards calc(var(--i) * 0.03s);
}

@keyframes wave {
  30% {
    opacity: 1;
    transform: translateY(4px) translateX(0) rotate(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-3px) translateX(0) rotate(0);
    color: var(--primary);
  }

  100% {
    opacity: 1;
    transform: translateY(0) translateX(0) rotate(0);
  }
}

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-20px) translateX(5px) rotate(-90deg);
    color: var(--primary);
    filter: blur(5px);
  }

  30% {
    opacity: 1;
    transform: translateY(4px) translateX(0) rotate(0);
    filter: blur(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-3px) translateX(0) rotate(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0) translateX(0) rotate(0);
  }
}

@keyframes disapear {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    transform: translateX(5px) translateY(20px);
    color: var(--primary);
    filter: blur(5px);
  }
}

/* Plane */
.state--default .icon svg {
  animation: land 0.6s ease forwards;
}

.cta-button:hover .state--default .icon {
  transform: rotate(45deg) scale(1.25);
}

.cta-button:focus .state--default svg {
  animation: takeOff 0.8s linear forwards;
}

.cta-button:focus .state--default .icon {
  transform: rotate(0) scale(1.25);
}

@keyframes takeOff {
  0% {
    opacity: 1;
  }

  60% {
    opacity: 1;
    transform: translateX(70px) rotate(45deg) scale(2);
  }

  100% {
    opacity: 0;
    transform: translateX(160px) rotate(45deg) scale(0);
  }
}

@keyframes land {
  0% {
    transform: translateX(-60px) translateY(30px) rotate(-50deg) scale(2);
    opacity: 0;
    filter: blur(3px);
  }

  100% {
    transform: translateX(0) translateY(0) rotate(0);
    opacity: 1;
    filter: blur(0);
  }
}

/* Contrail */
.state--default .icon:before {
  content: "";
  position: absolute;
  top: 50%;
  height: 2px;
  width: 0;
  left: -5px;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.5));
}

.cta-button:focus .state--default .icon:before {
  animation: contrail 0.8s linear forwards;
}

@keyframes contrail {
  0% {
    width: 0;
    opacity: 1;
  }

  8% {
    width: 15px;
  }

  60% {
    opacity: 0.7;
    width: 80px;
  }

  100% {
    opacity: 0;
    width: 160px;
  }
}

/* States */
.state {
  padding-left: 29px;
  z-index: 2;
  display: flex;
  position: relative;
}

.state--default span:nth-child(4) {
  margin-right: 5px;
}

.state--sent {
  display: none;
}

.state--sent svg {
  transform: scale(1.25);
  margin-right: 8px;
}

.cta-button:focus .state--default {
  position: absolute;
}

.cta-button:focus .state--sent {
  display: flex;
}

.cta-button:focus .state--sent span {
  opacity: 0;
  animation: slideDown 0.8s ease forwards calc(var(--i) * 0.2s);
}

.cta-button:focus .state--sent .icon svg {
  opacity: 0;
  animation: appear 1.2s ease forwards 0.8s;
}

@keyframes appear {
  0% {
    opacity: 0;
    transform: scale(4) rotate(-40deg);
    color: var(--primary);
    filter: blur(4px);
  }

  30% {
    opacity: 1;
    transform: scale(0.6);
    filter: blur(1px);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============= Scroll up ============== */

.scrollup {
  position: fixed;
  right: .8rem;
  bottom: -50%;
  background-color: rgb(214, 79, 79);
  color: var(--color-input-3);
  display: inline-flex;
  padding: 6px;
  font-size: 1.25rem;
  border-radius: .5rem;
  z-index: 20;
  transition: bottom .4s, transform .4s;
}

.scrollup:hover {
  transform: translateY(-.5rem);
  background-color: rgb(214, 79, 79);
  color: var(--color-input-3);
}

/* Show Scroll Up */
.show-scroll {
  bottom: 4rem;
}

[id] {
  scroll-margin-top: 80px;
}