@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

:root {
  --primary: #30365f;
  --primary-hover: #202440;
  --text-color: #555151;
  --gray: #c4c4c4;
  --light-gray: #f5f5f5;
  --gray-text: rgba(0, 0, 0, 0.3);
  --red: #be594e;
  --green: #48a66f;
  --white: white;
  --black: black;

  --mobile: 980px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  font-family: "Roboto", sans-serif;
  color: var(--text-color);
}

body {
  padding-bottom: 4rem;
}

/* STYLE */
.container {
  max-width: var(--mobile);
  margin: 0 auto;
  padding: 2rem;
}
.flex {
  display: flex;
}
.flex.aside > * {
  width: 50%;
}
.items-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-center {
  justify-content: center;
}
.flex.column {
  flex-direction: column;
}
.text-small {
  font-size: 0.8rem;
  font-weight: 100;
}
.text-bold {
  font-weight: 900;
}
.text-center {
  text-align: center;
}
.rounded {
  border-radius: 1rem;
}
.turn-90 {
  transform: rotate(90deg);
  transform-origin: top left;
  position: relative;
  top: 300px;
  left: 2rem;
}
.pose h1,
.pose h2,
.pose h3,
.pose h4,
.pose h5 {
  padding: 0.5rem 0 0.1rem 0;
}
.pose p {
  padding: 0.5rem 0;
  line-height: 1.5rem;
}
#spacer .vline {
  border-left: 1px solid var(--light-gray);
  width: 1px;
  height: 100%;
  position: absolute;
  top: 0;
  left: 1.3rem;
  height: 100%;
}
.text-primary {
  color: var(--primary) !important;
}
.space {
  height: 2rem;
}
.text-xs {
  font-size: 0.8rem;
}

/* Button */
.btn {
  background: var(--gray);
  color: var(--white);
  padding: 0.5rem 2rem;
  border-radius: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
  display: inline-block;
  text-decoration: none;
  transition: background 0.2s ease-in;
}
.btn.primary {
  background: var(--primary) !important;
  color: var(--white) !important;
}
.btn.primary:hover {
  background: var(--primary-hover) !important;
}
a {
  color: var(--primary);
  text-decoration: none;
}
/* HEADER */
header nav a {
  position: relative;
  top: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 200;
  padding: 1rem;
}
header nav a.btn {
  font-weight: 200;
  letter-spacing: normal;
  margin-left: 1rem;
}

#burger {
  width: 30px;
  height: 20px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
#burger div {
  background: var(--primary);
  width: 100%;
  height: 4px;
  border-radius: 2px;
  transition: all 0.2s ease-in;
}
#burger:hover div {
  opacity: 0.8;
}

/* CONTENT */
section#landing > * {
  width: 100%;
}
section#landing > *:nth-child(1) {
  text-align: center;
}
section#landing h1 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
  opacity: 0;
  -webkit-animation: fadeIn 0.5s ease-out forwards;
  animation: fadeIn 0.5s ease-out forwards;
}
section#landing h1 span {
  font-weight: 700;
}
section#landing .btn {
  font-size: 1.5rem;
  padding: 1rem 2rem;
  opacity: 0;
  -webkit-animation: fadeIn 0.5s ease-out forwards 0.2s;
  animation: fadeIn 0.5s ease-out forwards 0.2s;
}
section#landing #trust {
  margin-top: 2rem;
  opacity: 0;
  -webkit-animation: fadeIn 0.5s ease-out forwards 0.4s;
  animation: fadeIn 0.5s ease-out forwards 0.4s;
}
section#landing #trust > img {
  margin-right: 1rem;
}
section#landing #trust > div img:nth-child(1) {
  opacity: 0;
  -webkit-animation: fadeInLeft 0.2s ease-out 0.6s forwards;
  animation: fadeInLeft 0.2s ease-out 0.6s forwards;
}
section#landing #trust > div img:nth-child(2) {
  opacity: 0;
  -webkit-animation: fadeInLeft 0.2s ease-out 0.7s forwards;
  animation: fadeInLeft 0.2s ease-out 0.7s forwards;
}
section#landing #trust > div img:nth-child(3) {
  opacity: 0;
  -webkit-animation: fadeInLeft 0.2s ease-out 0.8s forwards;
  animation: fadeInLeft 0.2s ease-out 0.8s forwards;
}
section#landing #trust > div img:nth-child(4) {
  opacity: 0;
  -webkit-animation: fadeInLeft 0.2s ease-out 0.9s forwards;
  animation: fadeInLeft 0.2s ease-out 0.9s forwards;
}
section#landing #trust > div img:nth-child(5) {
  opacity: 0;
  -webkit-animation: fadeInLeft 0.2s ease-out 1s forwards;
  animation: fadeInLeft 0.2s ease-out 1s forwards;
}
section#landing #trust span {
  font-size: 1rem;
  display: inline-block;
  margin-top: 0.2rem;
}
section#landing #landing_image {
  padding: 4rem 0 4rem 4rem;
}
section#landing #landing_image img {
  border-radius: 1rem;
  box-shadow: 0 0px 5px #c7ccd2;
  width: 100%;
  -webkit-animation: fadeIn 0.5s ease-out forwards 0.5s;
  animation: fadeIn 0.5s ease-out forwards 0.5s;
  opacity: 0;
}

/* PREVIEW */
section#preview > div {
  border: 2px solid var(--primary);
  border-radius: 1rem;
  background: var(--light-gray);
  color: var(--primary);
  line-height: 1.5rem;
  padding: 2rem;
}
section#preview h2 {
  margin-bottom: 1rem;
}
section#preview ul {
  position: relative;
  left: 1rem;
}
section#preview ul li {
  margin-bottom: 1rem;
}

/* EXAMPLE */
section#example .ex_box {
  background: var(--gray);
  color: var(--white);
  padding: 2rem;
  border-radius: 0.6rem;
  position: relative;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  font-weight: 300;
}
section#example .ex_box:last-child span:last-child {
  -webkit-animation: pulse 1s ease-out infinite;
  animation: pulse 1s ease-out infinite;
}
section#example .ex_box span:first-child {
  text-align: center;
}
section#example .ex_box::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 12px 0 12px;
  border-color: var(--gray) transparent transparent transparent;
  position: relative;
  left: 50%;
  top: 70px;
  transform: translateX(-6px);
}
section#example .ex_box.primary::before {
  border-color: var(--primary) transparent transparent transparent;
}
section#example .ex_box.red::before {
  border-color: var(--red) transparent transparent transparent;
}
section#example .ex_box.green::before {
  border-color: transparent transparent transparent transparent;
}
section#example .ex_box.primary {
  background: var(--primary) !important;
}
section#example .ex_box.red {
  background: var(--red) !important;
}
section#example .ex_box.green {
  background: var(--green) !important;
}
section#example .ex_box div {
  position: relative;
  top: -6px;
}
section#example .ex_box div span.text-bold {
  letter-spacing: 0.1rem;
}
section#example #ex_boxes {
  flex: 4;
}
section#example #icons {
  flex: 1;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  height: 100%;
  position: relative;
}
section#example #icons .circle {
  background: var(--gray);
  border-radius: 50px;
  width: 50px;
  height: 50px;
  margin: 2.7rem 0;
  position: relative;
  top: -1rem;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
section#example #icons .circle svg {
  color: white;
  width: 30px;
  height: 30px;
}
section#example #icons .circle.primary {
  background: var(--primary) !important;
}
section#example #icons .circle.red {
  background: var(--red) !important;
}
section#example #icons .circle.green {
  background: var(--green) !important;
}
section#example #icons .vline {
  width: 1px;
  height: 75%;
  border: 1px dashed var(--gray);
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

/* form */
label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--gray);
}
input,
textarea {
  all: unset;
  border: 1px solid var(--gray);
  padding: 1rem;
  border-radius: 0.25rem;
  color: var(--black);
  white-space: pre;
}
input[type="submit"] {
  text-align: center;
  background: var(--green);
  color: var(--white);
  border: none;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}
input[type="submit"]:hover {
  background: var(--primary);
}

/* footer */
footer {
  color: var(--gray);
}
footer a {
  color: var(--gray);
  text-decoration: none;
  padding: 1rem;
}
footer a:hover {
  color: gray;
}

.prose p {
  line-height: 1.5rem;
  margin: 1rem 0;
}
.prose h1 {
  font-size: 2rem;
  margin: 1rem 0;
}
.prose h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem 0;
}
.prose ul {
  margin: 1rem;
}
.prose ul li {
  margin: 0.5rem 0;
}

/* media query mobile */

@media screen and (max-width: 950px) {
  header nav {
    display: none;
    position: absolute;
    z-index: 99;
    width: 100vw;
    left: 0;
    top: 80px;
    background: var(--light-gray);
    flex-direction: column;
    padding: 1rem;
    text-align: center;
  }
  header picture {
    position: relative;
    top: 6px;
  }
  header #burger {
    display: flex;
  }
  section#landing {
    flex-direction: column;
  }
  section#landing h1 {
    font-size: 2rem;
  }
  section#landing .btn {
    font-size: 1rem;
    margin-top: 1rem;
  }
  section#landing #trust > img {
    width: 50px;
  }
  section#landing #landing_image {
    padding: 0;
    margin-top: 2rem;
  }
  section#preview > div {
    flex-direction: column;
  }
  section#preview img {
    margin-top: 1rem;
  }
  section#example #icons {
    display: none;
  }
  section#example .ex_box > div {
    flex-direction: column;
    line-height: 2.5rem;
  }
  section#example .ex_box::before {
    top: 124px;
  }
  section#contact {
    flex-direction: column;
  }
  section#contact #spacer {
    display: none;
  }
  footer {
    flex-direction: column;
    gap: 2rem;
  }
  .flex.aside {
    flex-direction: column;
  }
  .flex.aside > * {
    width: 100%;
  }
}

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@-webkit-keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-2rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-2rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@-webkit-keyframes pulse {
  75% {
    scale: 1.05;
  }
  100% {
    scale: 1;
  }
}

@keyframes pulse {
  75% {
    scale: 1.05;
  }
  100% {
    scale: 1;
  }
}
