/* -------------------------------------------------------------------------- *\
   FONTS
\* -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: local('Open Sans'), local('OpenSans'), url(https://fonts.gstatic.com/s/opensans/v13/cJZKeOuBrn4kERxqtaUH3bO3LdcAZYWl9Si6vvxL-qU.woff) format('woff');
}

/* -------------------------------------------------------------------------- *\
   BASE
\* -------------------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font: 100%/1.5 Open Sans, sans-serif;
  text-align: center;
}

@media (min-width: 70.875em) {
  body {
    font-size: 112.5%;
  }
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Futura", "Trebuchet MS", "Arial", sans-serif;
}

h1 {
  font-size: 3em;
  line-height: 1;
  margin-bottom: 0.5em;
}

h2 {
  font-size: 1.7em;
  line-height: 1.765;
  font-weight: 400;
  margin-bottom: 0.882em;
  text-transform: uppercase;
}

h3 {
  font-size: 1.3em;
  line-height: 1.154;
  margin-bottom: 1.154em;
}

p {
  margin-bottom: 1.5em;
}

a {
  color: #4cadeb;
  border-bottom: 1px dotted;
  text-decoration: none;
}

a:hover,
a:focus {
  border-bottom-style: solid;
}

/* -------------------------------------------------------------------------- *\
   BUTTONS
\* -------------------------------------------------------------------------- */

[data-button] {
  position: relative;
  display: inline-block;
  padding: 1em 2em;
  color: #fff;
  font-family: "Futura", "Trebuchet MS", "Arial", sans-serif;
  font-size: 0.75em;
  line-height: 2;
  text-decoration: none;
  text-transform: uppercase;
  background-color: #4cadeb;
  border-radius: 2em;
  border: 0;
  transition-property: color, background-color;
  transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
  transition-duration: 0.3s;
  cursor: pointer;
  will-change: color, background-color;
}

[data-button]:hover {
  color: #4cadeb;
  background-color: #fff;
  transition-delay: 0.15s;
}

[data-button]::before {
  content: "";
  position: absolute;
  top: -0.4em;
  bottom: -0.4em;
  right: 2.666em;
  left: 2.666em;
  background-color: #4cadeb;
  opacity: 0.2;
  border-radius: 2.8em;
  z-index: -1;
  transition-property: right, left, opacity;
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
  transition-delay: 0.15s;
  will-change: right, left, opacity;
}

[data-button]:hover::before {
  right: -0.4em;
  left: -0.4em;
  opacity: 1;
  transition-delay: 0;
}

[data-button~="block"] {
  display: block;
  width: 100%;
}

/* -------------------------------------------------------------------------- *\
   WRAPPERS
\* -------------------------------------------------------------------------- */

.wrap {
  padding-left: 1.5em;
  padding-right: 1.5em;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 50em) {
  .wrap {
    max-width: 66em !important;
    padding-left: 4.5em;
    padding-right: 4.5em;
  }
}

/* -------------------------------------------------------------------------- *\
   HEADER
\* -------------------------------------------------------------------------- */

.site-header {
  background-image:
    linear-gradient(to bottom, rgba(72, 85, 99, 1), rgba(72, 85, 99, 0.8)),
    url(../img/pattern.png);
}

.icon {
  display: block;
  width: 6em;
  height: 6em;
  margin: 0 auto 1.5em;
  border-radius: 100%;
  box-shadow: 0 3px 5px rgba(30, 30, 30, 0.2);
  animation: pulse 1.25s ease-in-out 0.25s;
}

@media (min-width: 50em) {
  .icon {
    margin-bottom: 3em;
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  14% { transform: scale(1.05); }
  28% { transform: scale(1); }
  42% { transform: scale(1.05); }
  70% { transform: scale(1); }
}

.hero-text {
  margin-bottom: 0.75em;
  font-size: 2em;
}

@media (min-width: 50em) {
  .hero-text {
    margin-bottom: 1.5em;
  }
}

.hero-img {
  display: block;
  width: 100%;
  margin-bottom: -3em;
  border-radius: 5px 5px 0 0;
  box-shadow: 0 0 5px rgba(30, 30, 30, 0.35);
}

/* -------------------------------------------------------------------------- *\
   LINKS
\* -------------------------------------------------------------------------- */

.links {
  display: flex;
  max-width: 30em;
  justify-content: space-between;
  flex-direction: column;
}

@media (min-width: 50em) {
  .links {
    flex-direction: row;
  }
}

.links [data-button] {
  width: 100%;
  margin-bottom: 1.5em;
}

.links [data-button]:last-child {
  margin-bottom: 0;
}

@media (min-width: 50em) {
  .links [data-button] {
    width: calc(50% - 0.75em);
    max-width: none;
    margin-bottom: 0;
  }
}

/* -------------------------------------------------------------------------- *\
   SECTIONS
\* -------------------------------------------------------------------------- */

.site-header,
section,
.site-footer {
  padding: 3em 0;
}

@media (min-width: 50em) {
  section {
    padding: 4.5em 0;
  }
}

.site-header,
section:nth-child(2n+1) {
  color: #fff;
  background-color: #5e666e;
}

section:first-child,
section:nth-child(2n),
.site-footer {
  position: relative;
  color: #5e666e;
  background-color: #f5f5f5;
  box-shadow: 0 0 5px rgba(30, 30, 30, 0.35);
  z-index: 100;
}

section:first-child {
  padding: 1.5em 0;
  background-color: #fff;
  z-index: 200;
}

/* -------------------------------------------------------------------------- *\
   FEATURES
\* -------------------------------------------------------------------------- */

.feature {
  display: flex;
  flex-direction: column;
  max-width: 30em;
}

@media (min-width: 50em) {
  .feature {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 50em) {
  .feature-rev {
    flex-direction: row-reverse;
  }
}

.feature-img {
  display: block;
  width: 100%;
  margin-bottom: 1.5em;
  border-radius: 5px;
  box-shadow: 0 3px 5px rgba(30, 30, 30, 0.35);
}

@media (min-width: 50em) {
  .feature-img {
    width: calc(50% - 2.25em);
    margin-bottom: 0;
  }
}

.feature-description p {
  margin-bottom: 0;
}

@media (min-width: 50em) {
  .feature-description {
    width: calc(50% - 2.25em);
    text-align: left;
  }
}

/* -------------------------------------------------------------------------- *\
   TECH
\* -------------------------------------------------------------------------- */

.tech {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  padding: 0 1.5em;
}

@media (min-width: 50em) {
  .tech {
    flex-direction: row;
    justify-content: space-between;
    padding: 0 4.5em;
  }
}

.tech-logo {
  display: block;
  width: 7.5em;
  max-width: 100%;
  height: auto;
  margin: 0 auto 1.5em;
}

@media (min-width: 30em) and (max-width: 50em) {
  .tech-logo {
    margin-bottom: 0;
    margin-right: 1.5em;
  }
}

.tech-description {
  display: flex;
  flex-direction: column;
  padding: 1.5em;
  margin-bottom: 1.5em;
  color: #2f3337;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 3px 5px rgba(30, 30, 30, 0.35);
  transition: transform 0.15s ease-in-out;
  will-change: transform;
}

.tech-description:hover {
  transform: scale(1.0125);
}

.tech-description:last-child {
  margin-bottom: 0;
}

@media (min-width: 30em) and (max-width: 50em) {
  .tech-description {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
}

@media (min-width: 50em) {
  .tech-description {
    width: calc(50% - 0.75em);
  }

  .tech-description:nth-last-child(-n+2) {
    margin-bottom: 0;
  }
}

@media (min-width: 70.875em) {
  .tech-description {
    width: calc(25% - 1.125em);
    margin-bottom: 0;
  }
}

.tech-description p {
  margin-bottom: 0;
}
