@font-face {
  font-family: 'Serif72Beta';
  src: url('/assets/fonts/Serif72Beta-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Serif72Beta';
  src: url('/assets/fonts/Serif72Beta-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'Serif72Beta';
  src: url('/assets/fonts/Serif72Beta-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Serif72Beta';
  src: url('/assets/fonts/Serif72Beta-BoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: 'Serif72Beta';
  src: url('/assets/fonts/Serif72Beta-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'Serif72Beta';
  src: url('/assets/fonts/Serif72Beta-BlackItalic.otf') format('opentype');
  font-weight: 900;
  font-style: italic;
}

:root {
  --primary-color: #808251;
  --secondary-color: #ba5936;
  --tertiary-color: #fffdf5;
  --background-color: #f8f9fa;
  --text-color: #000000;
  --white: #ffffff;
  --black: #000000;
  --footer-bg: #E3E4D3;
  --interior-bg: #f7f6f4;
  --features-bg: #E6E593;
  --box-shadow-light: rgba(0, 0, 0, 0.15);
  --box-shadow-medium: rgba(0, 0, 0, 0.4);
  
  --font-family: "Serif72Beta", serif;
  
  --border-radius-small: 12px;
  --border-radius-medium: 16px;
  --border-radius-large: 20px;
  --border-radius-button: 42px;
}

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

html {
  font-size: 10px;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--background-color);
}

h1 {
  font-size: 6.9rem;
  margin-bottom: 0.8rem;
}
h2 {
  font-size: 4.8rem;
  margin-bottom: 2rem;
}
h3 {
  font-size: 2.9rem;
  margin-bottom: 0.8rem;
}
h4 {
  font-size: 2.4rem;
  margin-bottom: 0.8rem;
}
h5 {
  font-size: 1.8rem;
}

p,
span {
  font-size: 1.6rem;
}
p {
  margin-bottom: 1rem;
  font-weight: 300;

}

button,
a {
  font-size: 1.4rem;
}
a.button {
  padding: 4px 10px;
  border-radius: var(--border-radius-button);
  border: solid 1px var(--primary-color);
  background: var(--primary-color);
  color: var(--tertiary-color);
  text-decoration: none;
  transition: all ease 0.2s;
  white-space: nowrap;

  &:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
  }
}
a.button.secondary {
  background: transparent;
  color: var(--black);
  border: solid 1px var(--black);

  &:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
  }
}
ul {
  font-size: 1.8rem;
  text-align: left;
  padding-top: 1rem;
  margin-left: 3rem;
  margin-bottom: 3rem;
}

.container {
  max-width: 135.4rem;
  margin: 0 auto;
  padding: 0 2.5rem 0 2.5rem;
}

section {
  padding: 5rem 0;
}

header {
  padding: 2.5rem 0 2.5rem 0;
  background: transparent;
  position: fixed;
  width: 100%;
  z-index: 9;
  transition: all ease 0.2s;
  &.header-opaque {
    background-color: var(--white);
    box-shadow: 0 1px 4px 0 var(--box-shadow-light);
  }

  .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .site-logo {
    display: flex;
    img {
      width: 60%;
      height: 100%;
    }
  }

  .buttons {
    display: flex;
    gap: 1rem;
  }
}

footer {
  width: 100%;
  height: 100%;
  display: grid;
  gap: 8rem;
  grid-template-columns: 1fr auto auto auto;
  padding: 6rem 18rem;
  background: var(--footer-bg);
}
.footer-address {
  display: flex;
  flex-direction: column;
  gap: 5px;

  .site-logo {
    height: 65px;
  }
  .address-line {
    font-size: 1.4rem;
    opacity: 0.4;
    margin-bottom: 0;
  }
}
.footer-nav-links {
  display: grid;
  gap: 8rem;
  grid-template-columns: 1fr 1fr;
}
.footer-nav-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  h5 {
    margin-bottom: 1.5rem;
  }
  a {
    color: var(--black);
    font-size: 1.5rem;
    text-decoration: none;
  }
  a:hover {
    text-decoration: underline;
  }
}

/* INTERIOR PAGES */
.interior-page {
  padding-top: 9.4rem;
  background: var(--interior-bg);

  h1 {
    font-size: 4.2rem;
    margin-bottom: 2rem;
    text-align: left;
  }
  p {
    margin-bottom: 2rem;
    font-size: 1.8rem;
    text-align: left;
  }
}

@media screen and (max-width: 1024px) {
  header .buttons {
    gap: 0.5rem;
  }
  footer {
    padding: 4rem 2rem;
    grid-template-columns: 1fr;
    gap: 5rem;
  }
  .footer-nav-links {
    padding: 0 0 2rem;
  }
}

/* SECTIONS */

/* HERO */
#hero {
  padding-top: 9.4rem;
  position: relative;
  background: var(--tertiary-color);
  min-height: 50rem;
  display: flex;
  align-items: center;
  justify-content: center;

  .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-left: 2rem;
    margin-right: 2rem;

    .laptop-video-container {
      position: relative;
      z-index: 2;
      width: 100%;
      .laptop-image {
        max-width: 100%;
        width: 100%;
        height: auto;
        display: block;
        position: relative;
        z-index: 2;
      }
      video {
        position: absolute;
        top:2.5%;
        height: 87%;
        left: 10%;
        object-fit: cover;
        border-radius: var(--border-radius-small);
        box-shadow: 0 0 10px var(--box-shadow-medium);
        z-index: 3;
        display: none;
      }
    }
  }

  .hero-content {
    z-index: 2;
    flex: 0 0 50%;
    span {
      font-size: 2rem;
      font-weight: 600;
    }
    p {
      margin-bottom: 3rem;
    }
    h1 {
      margin-bottom: 3rem;
      font-size: 5rem;
    }
  }

  .hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    pointer-events: none;
    opacity: 0.4;
  }
}

/* AI TEAM */
#ai-team {
  position: relative;
  padding: 3rem;
  padding-top: 3rem;

  &::before {
    content: "";
    position: absolute;
    top: -11rem;
    left: 0;
    width: 0;
    height: 0;
    border-right: 0 solid transparent;
    border-bottom: 110px solid var(--background-color);
    border-left: calc(100vw - 15px) solid transparent;
  }

  .team-heading {
    text-align: flex-start;
    margin-bottom: 4rem;
    h3 {
      font-style: italic;
    }
  }

  .team-row {
    display: flex;
    justify-content: space-between;
    gap: 5rem;
    margin-bottom: 5rem;

    &:last-of-type {
      margin-bottom: 0;
    }
  }

  .ai-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    gap: 2rem;
    h4 {
      font-style: italic;
    }
  }
}

/* HOW IT WORKS */
#how-it-works {
  position: relative;
  padding-top: 8rem;
  padding-bottom: 0;
  z-index: 1;

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -40rem;
    background-image: url('/assets/images/background-rectangles.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    z-index: -1;
  }
  .container {
    padding-bottom: 5rem;
    h3{
      font-style: italic;
      text-align: center;
    }
  }

  .steps {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    padding-top: 2rem;
  }

  .step {
    flex: 1;
    img {
      margin-bottom: 2rem;
      display: block;
      margin-left: auto;
      margin-right: auto;
    }
    h3 {
      font-style: italic;
      text-align: center;
    }
  }

  .dotted-line {
    position: absolute;
    bottom: 0;
    right: 0;
  }
}

/* FEATURES */
#features {
  position: relative;
  z-index: 1;
  .ac{
    background: transparent;
  }
  .container {
    background: var(--features-bg);
    border-radius: var(--border-radius-large);
    align-self: center;
    justify-self: center;
    padding: 4rem 10rem 2rem 10rem;
    margin-left: 3rem;
    margin-right: 3rem;
    h2{
      font-style: italic;
    }
    .features-container {
      align-items: center;
      justify-content: center;
      .row {
        .feature {
          border: solid 0.1px var(--black);
          padding: 1rem;
          border-radius: var(--border-radius-medium);
          max-width: 352px;
        }
      }
    }
  }
  .row {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 2rem;
  }

  .feature {
    flex: 1;
  }
  .dotted-line {
    position: absolute;
    bottom: 0;
    left: 0;
  }
  h3 {
    font-style: italic;
  }
}

.ac-header {
  font-style: italic;
}

/* PRICING */
#pricing {
  background: transparent;

  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    p {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      font-style: italic;
      strong {
        font-size: 2.1rem;
        font-weight: 700;
      }
    }
    h2 {
      font-style: italic;
    }
  }
}

@media screen and (max-width: 1024px) {
  header {
    padding: 2.5rem;
  }

  section,
  #ai-team {
    padding: 2rem;
    text-align: center;
  }


  h2 {
    font-size: 4rem;
  }
  h3 {
    font-size: 2.4rem;
  }

  #hero .container,
  #ai-team .team-row,
  #ai-team .ai-type,
  #how-it-works .steps,
  #features .row {
    flex-direction: column;
    gap: 2rem;  
  }

  #hero {
    .hero-circle-orange {
      width: 23%;
    }

    .container img {
      position: relative;
      right: -10px;
      height: 20rem;
    }

    .container .laptop-video-container {
      .laptop-image {
        max-width: 100%;
        width: 70%;
        height: auto;
        position: relative;
        z-index: 2;
        justify-self: center;
      }
      video {
        position: absolute;
        margin-left: -3rem;
        object-fit: cover;
        border-radius: var(--border-radius-small);
        box-shadow: 0 0 10px var(--box-shadow-medium);
        z-index: 3;
        display: none;
      }
    }

    .container .laptop-video-container video {
      left: 14.4%;
    }

    .hero-content h1,
    .hero-content span {
      font-size: 4rem;
    }
  }

  #ai-team .team-row {
    margin-bottom: 2rem;
  }

  #how-it-works {
    padding-top: 3rem;
    .container {
      padding-bottom: 3rem;
    }
  }

  #features {
    .row {
      display: none;
    }
    .container {
        padding: 4rem 2rem 2rem 2rem;
    }
  }

  #pricing .container p {
    display: inline;
    img {
      display: none;
    }
  }
}

@media screen and (max-width: 768px) {
  #hero .container .laptop-video-container {
    .laptop-image {
      max-width: 100%;
      width: 100%;
      height: auto;
      position: relative;
      z-index: 2;
    }
    video {
      position: absolute;
      top:2.5%;
      height: 87%;
      left: 11%;
      margin-left: 0rem;
      object-fit: cover;
      border-radius: var(--border-radius-small);
      box-shadow: 0 0 10px var(--box-shadow-medium);
      z-index: 3;
      display: none;
    }
  }
}

.dotted-line {
  position: absolute;
  top: 1950px;
  left: 0;
}

