/* || Global Reset */

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

/* || Colours & Font Styles */

:root {
  --neutral-950: #000;
  --neutral-300: #d8d8d8;
  --neutral-0: #fff;
  --slate-700: #333a44;
  --slate-600: #495567;
  --slate-400: #939caa;
  --slate-100: #e5ecf4;
  --slate-50: #f2f5f9;
  --amber-400: #fcb72b;
  --amber-50: #fff4df;
  --navy-800: #2f3b59;

  --txt-1-fs: 3.5rem;
  --txt-1-ls: -0.1563rem;
  --txt-1-fw: 700;
  --txt-2-fs: 3rem;
  --txt-2-ls: -0.125rem;
  --txt-2-fw: 700;
  --txt-3-fs: 2.5rem;
  --txt-3-ls: -0.1094rem;
  --txt-3-fw: 700;
  --txt-4-fs: 2rem;
  --txt-4-ls: -0.0875rem;
  --txt-4-fw: 700;
  --txt-5-fs: 1.5rem;
  --txt-5-ls: -0.0625rem;
  --txt-5-fw: 700;
  --txt-5-lh: 115%;
  --txt-6-fs: 1.25rem;
  --txt-6-ls: 0.0375rem;
  --txt-6-fw: 700;
  --txt-6-lh: 120%;
  --txt-7-fs: 1.125rem;
  --txt-7-ls: 0.05rem;
  --txt-7-fw: 700;
  --txt-7-lh: 135%;
  --txt-8-fs: 0.9375rem;
  --txt-8-fw: 700;
  --txt-8-lh: 165%;
  --txt-9-fs: 0.625rem;
  --txt-9-ls: 0.0281rem;
  --txt-9-lh: 150%;
  --txt-9-fw: 700;
  --txt-10-fs: 0.9375rem;
  --txt-10-fw: 400;
  --txt-10-lh: 165%;
}

/* || Fonts */

@font-face {
  font-style: normal;
  font-weight: 400;
  src: url('./assets/fonts/space-mono-v17-latin-regular.woff2') format('woff2');
  font-family: 'Space Mono';
  font-display: swap;
}

@font-face {
  font-style: normal;
  font-weight: 700;
  src: url('./assets/fonts/space-mono-v17-latin-700.woff2') format('woff2');
  font-family: 'Space Mono';
  font-display: swap;
}

@font-face {
  font-style: normal;
  font-weight: 400;
  src: url('./assets/fonts/lexend-deca-v25-latin-regular.woff2') format('woff2');
  font-family: 'Lexend Deca';
  font-display: swap;
}

/* || Main Styles */

/* Typography */

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-family: 'Space Mono', Arial, Helvetica, sans-serif;
}

.content-container {
  margin-inline: auto;
  width: min(100%, 90rem);
  overflow-x: hidden;
}

.hero-text,
.feature-text {
  font-family: 'Lexend Deca', Arial, Helvetica, sans-serif;
}

h2 {
  margin-block-end: 1.875rem;
  color: var(--slate-600);
  font-weight: var(--txt-6-fw);
  font-size: var(--txt-6-fs);
  line-height: var(--txt-6-lh);
  letter-spacing: var(--txt-6-ls);
  text-align: center;
}

h1 {
  width: 15ch;
  color: var(--neutral-0);
  font-weight: var(--txt-3-fw);
  font-size: clamp(var(--txt-3-fs), 5vw, 3.5rem);
  line-height: 130%;
  letter-spacing: var(--txt-3-ls);
  text-align: center;
}

.feature-text,
.feature-item-two-text {
  width: 30ch;
  color: var(--slate-400);
  font-weight: var(--txt-10-fw);
  font-size: var(--txt-10-fs);
  line-height: var(--txt-10-lh);
  text-align: center;
}

.feature-item-title {
  font-weight: var(--txt-4-fw);
  font-size: clamp(var(--txt-4-fs), 5vw, 3rem);
  letter-spacing: var(--txt-4-ls);
}

/* Header */

header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
  background-color: var(--neutral-0);
  padding: 1.5rem 2rem;
  width: min(100%, 90rem);
  max-width: 90rem;
}

.menu-icon {
  transition: background-image 0.2s ease-in-out;
  cursor: pointer;
  margin-inline-end: 7.3656rem;
  background-image: url(./assets/icons/hamburger.svg);
  width: 1.25rem;
  height: 1rem;
}

.menu-icon-close {
  background-image: url(./assets/icons/close.svg);
}

.logo-nav-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-logo {
  width: 4.7188rem;
  height: 1.25rem;
}

.header-nav {
  display: none;
  gap: 2rem;
}

.header-btn {
  display: none;
  transition:
    background-color 0.2s,
    color 0.2s ease-in-out;
  cursor: pointer;
  border: 0.2rem solid var(--amber-400);
  background-color: var(--amber-400);
  padding: 1rem 2.5rem;
  color: var(--neutral-0);
  font-weight: 700;
  font-family: 'Space Mono', Arial, Helvetica, sans-serif;
  text-decoration: none;
}

.header-btn:hover {
  background-color: var(--neutral-0);
  color: var(--amber-400);
}

.header-link {
  transition: color 0.2s ease-in-out;
  cursor: pointer;
  color: var(--slate-400);
  font-weight: var(--txt-8-fw);
  font-size: var(--txt-8-fs);
  line-height: var(--txt-8-lh);
  text-decoration: none;
}

.header-link:hover {
  color: var(--navy-800);
}

/* Mobile Menu */

.mobile-menu {
  display: flex;
  position: absolute;
  top: 4.3rem;
  left: 0;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(-100%);
  opacity: 0;
  z-index: 99;
  transition: all 0.2s ease-in-out;
  background-color: var(--slate-700);
  padding: 1.5rem 2rem;
  width: 16rem;
  height: 37.4375rem;
  pointer-events: none;
}

.show {
  transform: translateX(0%);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-block-start: 1rem;
}

.mobile-nav-link {
  transition: color 0.2s ease-in-out;
  cursor: pointer;
  color: var(--neutral-0);
  font-weight: var(--txt-8-fw);
  font-size: var(--txt-8-fs);
  line-height: var(--txt-8-lh);
  text-decoration: none;
}

.mobile-nav-link:hover {
  color: var(--amber-400);
}

.mobile-nav-button {
  display: block;
  transition:
    background-color 0.2s ease-in-out,
    color 0.2s ease-in-out;
  cursor: pointer;
  border: 0.2rem solid var(--amber-400);
  background-color: var(--amber-400);
  padding: 1rem 0;
  width: 11.375rem;
  color: var(--neutral-0);
  font-weight: 700;
  font-family: 'Space Mono', Arial, Helvetica, sans-serif;
  text-align: center;
  text-decoration: none;
}

.mobile-nav-button:hover {
  background-color: transparent;
  color: var(--amber-400);
}

/* Hero Section */

.hero-section {
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  background-image: url(./assets/images/home-hero-mobile.jpg);
  background-size: cover;
  padding-top: 4rem;
  height: 40.625rem;
}

.hero-btn {
  display: block;
  transition:
    background-color 0.2s ease-in-out,
    color 0.2s ease-in-out;
  cursor: pointer;
  border: 0.2rem solid var(--amber-400);
  background-color: var(--amber-400);
  padding: 1rem 0;
  width: 11.375rem;
  color: var(--neutral-0);
  font-weight: 700;
  font-family: 'Space Mono', Arial, Helvetica, sans-serif;
  text-align: center;
  text-decoration: none;
}

.hero-btn:hover {
  background-color: transparent;
  color: var(--amber-400);
}

.right-arrow {
  position: absolute;
  bottom: 5%;
  left: -21rem;
}

.hero-circles-image {
  display: none;
  position: absolute;
  right: -1.875rem;
  bottom: 2.8125rem;
}

.hero-line {
  display: none;
  position: absolute;
}

.hero-text {
  margin-block-end: 0.5rem;
  padding: 0 4rem;
  color: var(--neutral-0);
  font-weight: var(--txt-10-fw);
  font-size: var(--txt-10-fs);
  line-height: var(--txt-10-lh);
  text-align: center;
}

/* Feature Section */

.features-section {
  position: relative;
  opacity: 0;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.features-line {
  display: none;
  position: absolute;
  top: 0;
  left: 8.4rem;
  background-color: var(--slate-100);
  width: 1rem;
  height: 32.0625rem;
}

.features-container {
  display: grid;
  grid-template-rows: auto;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 3rem;
  padding: 8rem 2rem;
  width: 100%;
}

.feature-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  width: 19.4375rem;
}

.feature-icon {
  z-index: 98;
  width: 3.5rem;
  height: 3.5rem;
}

/* Feature Section Two */

.features-section-two {
  display: flex;
  flex-direction: column;
  gap: 10rem;
  opacity: 0;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  margin-block-end: 5rem;
}

.feature-one,
.feature-two,
.feature-three {
  position: relative;
}

.circle-one,
.circle-two,
.circle-three {
  position: absolute;
}

.circle-one,
.circle-three {
  display: none;
  top: 0;
  right: -21rem;
}

.circle-two {
  display: none;
  top: 0;
  left: -21rem;
}

.feature-two-arrow-left {
  position: absolute;
  top: 11rem;
  right: -23rem;
  z-index: 98;
}

.feature-two-arrow-right {
  position: absolute;
  top: -1rem;
  left: -9rem;
  z-index: 98;
}

.feature-item-three-arrow {
  position: absolute;
  top: 0;
  left: 10.625rem;
  z-index: 98;
}

.feature-item-two {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-item-two-text-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.feature-item-two-image {
  z-index: 97;
  margin-block-end: 3.5rem;
  border-radius: 50%;
  width: 19.4375rem;
  height: 19.4375rem;
}

.feature-item-link {
  display: block;
  transition:
    background-color 0.2s ease-in-out,
    color 0.2s ease-in-out;
  cursor: pointer;
  cursor: pointer;
  border: 0.2rem solid var(--amber-400);
  background-color: var(--amber-400);
  padding: 1rem 0;
  width: 11.375rem;
  color: var(--neutral-0);
  font-weight: 700;
  font-family: 'Space Mono', Arial, Helvetica, sans-serif;
  text-align: center;
  text-decoration: none;
}

.feature-item-link:hover {
  background-color: var(--neutral-0);
  color: var(--amber-400);
}

/* Download Section */

.download-section {
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  background-color: var(--slate-600);
  height: 20rem;
}

.download-title {
  margin-block-end: 2.5rem;
  color: var(--neutral-0);
  font-weight: var(--txt-4-fw);
  font-size: clamp(var(--txt-4-fs), 5vw, 3rem);
  letter-spacing: var(--txt-4-ls);
}

.store-link {
  cursor: pointer;
}

.download-circles {
  display: block;
  position: absolute;
  right: -10rem;
  bottom: 0;
}

/* Main Footer */

.main-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--slate-700);
  height: 27.375rem;
}

.footer-title {
  color: var(--neutral-0);
  font-size: 2.5rem;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-block-end: 3rem;
}

.social-link-container {
  display: flex;
  gap: 1.5rem;
}

.social-link {
  cursor: pointer;
}

.social-link:hover {
  animation: 1s jiggle;
}

@keyframes jiggle {
  0% {
    transform: rotate(-20deg);
  }
  25% {
    transform: rotate(40deg);
  }
  50% {
    transform: rotate(-40deg);
  }
  100% {
    transform: rotate(20deg);
  }
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.footer-link {
  transition: color 0.2s ease-in-out;
  color: var(--slate-400);
  font-weight: var(--txt-8-fw);
  font-size: var(--txt-8-fs);
  line-height: var(--txt-8-lh);
  text-align: center;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--neutral-0);
}

/* Fade in for sections */

.section-visible {
  opacity: 1;
}

/* Tablet */

@media screen and (min-width: 45rem) {
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 6rem;
  }

  .menu-icon {
    display: none;
  }

  .logo-nav-wrapper {
    gap: 6rem;
  }

  .header-logo {
    width: 6.7387rem;
    height: 1.785rem;
  }

  .header-nav {
    display: flex;
  }

  .header-btn {
    display: block;
  }

  .hero-section {
    background-image: url(./assets/images/home-hero-tablet.jpg);
    background-size: cover;
  }

  .hero-text {
    width: 36rem;
  }

  .right-arrow {
    left: -9.375rem;
  }

  .hero-circles-image {
    display: block;
  }

  .features-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 8rem 16rem;
  }

  .feature-item {
    flex-direction: row;
    gap: 5rem;
  }

  .feature-icon {
    width: 6rem;
    height: 6rem;
  }

  .feature-title,
  .feature-text {
    text-align: left;
  }

  .feature-text {
    width: 50ch;
  }

  .features-line {
    display: block;
  }

  .feature-item-two-image {
    width: 27.8125rem;
    height: 27.8125rem;
  }

  .feature-item-title {
    width: 16ch;
  }

  .feature-item-two-text {
    width: 60ch;
  }

  .feature-two-arrow-left {
    top: 19rem;
    right: -1rem;
  }

  .feature-two-arrow-right {
    top: 2rem;
    left: -2rem;
  }

  .feature-item-three-arrow {
    top: 6rem;
    left: 26rem;
  }

  .circle-one,
  .circle-two,
  .circle-three {
    display: block;
  }

  .download-circles {
    display: block;
  }

  .main-footer {
    padding: 2rem 0;
    height: auto;
  }

  .footer-content {
    gap: 8rem;
  }

  .footer-content,
  .footer-nav {
    flex-direction: row;
  }

  .footer-nav,
  .social-link-container {
    align-items: center;
    margin-block-end: 0;
  }
}

/* Desktop */

@media screen and (min-width: 90rem) {
  header {
    padding: 3rem 4rem;
    width: min(100%, 90rem);
  }

  .hero-section {
    align-items: flex-start;
    background-image: url(./assets/images/home-hero-desktop.jpg);
  }

  h1 {
    margin-inline-start: 4em;
    width: 18ch;
    text-align: left;
  }

  .hero-text {
    margin-inline-start: 14rem;
    width: 62ch;
    text-align: left;
  }

  .hero-btn {
    margin-inline-start: 18rem;
  }

  .right-arrow {
    top: 22.5rem;
    left: 47rem;
  }

  .hero-circles-image {
    top: 27rem;
    right: -2rem;
  }

  .hero-line {
    display: block;
    top: 23rem;
    left: 0;
  }

  .features-container {
    flex-direction: row;
    align-items: flex-start;
  }

  .feature-item {
    flex-direction: column;
  }

  .feature-text {
    width: 21ch;
  }

  .features-line {
    top: 10.5rem;
    left: 0;
    width: 64rem;
    height: 1rem;
  }

  .features-section-two {
    align-items: center;
  }

  .feature-item-two-text-wrapper {
    align-items: flex-start;
  }

  .feature-item-two-text,
  .feature-item-title {
    text-align: left;
  }
  .feature-one,
  .feature-two,
  .feature-three {
    gap: 8rem;
  }

  .feature-one {
    flex-direction: row-reverse;
  }

  .feature-two {
    flex-direction: row;
  }

  .feature-three {
    flex-direction: row-reverse;
  }

  .feature-two-arrow-left {
    right: -12rem;
  }

  .circle-one,
  .circle-three {
    right: -30rem;
  }

  .circle-two {
    left: -30rem;
  }

  .feature-two-arrow-right {
    top: -1rem;
    left: -12rem;
  }

  .feature-item-three-arrow {
    top: 5rem;
    left: 57rem;
  }

  .download-section {
    flex-direction: row;
    justify-content: space-between;
    padding: 0 8rem;
  }

  .download-title {
    text-align: left;
  }

  .download-circles {
    right: -10rem;
    bottom: 0;
  }

  .footer-content {
    justify-content: space-around;
    gap: 24rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-visible {
    transform: none;
    opacity: none;
  }

  .social-link:hover {
    animation: none;
  }
}
