/*-- -------- - ---------- --->
<---         FONTS         --->
<--- -------- - ---------- --*/
/* roboto-400 - latin */
@font-face {
  font-display: swap;
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  src: url("/assets/fonts/roboto-v50-latin-regular.woff2") format("woff2");
}
/* roboto-500 - latin */
@font-face {
  font-display: swap;
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  src: url("/assets/fonts/roboto-v50-latin-500.woff2") format("woff2");
}
/* roboto-600 - latin */
@font-face {
  font-display: swap;
  font-family: "Roboto";
  font-style: normal;
  font-weight: 600;
  src: url("/assets/fonts/roboto-v50-latin-600.woff2") format("woff2");
}
/* roboto-700 - latin */
@font-face {
  font-display: swap;
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  src: url("/assets/fonts/roboto-v50-latin-700.woff2") format("woff2");
}

/*-- -------- - ---------- --->
<---         CORE          --->
<--- -------- - ---------- --*/
:root {
  --brand-color: hsl(49, 99%, 54%); /* #fed315 */
  --brand-color-dark: hsl(49, 100%, 48%); /* #f5c800 */
  --brand-color-light: hsl(49, 100%, 60%);

  --white-color: hsl(210, 20%, 98%); /* #f9fafb */
  --white-color-dark: hsl(210, 20%, 88%);
  --white-color-light: hsl(210, 20%, 100%);

  --black-color: hsl(240, 10%, 6%);
  --black-color-light-opacity: hsla(240, 10%, 12%, 0.6);
  --black-color-opacity: hsla(240, 10%, 6%, 0.1);

  --background-color: hsl(240, 7%, 3%); /* #070708 */
  --background-color-secondary: hsl(0, 0%, 7%); /* #121212 */
  --background-color-gradient: linear-gradient(
    #070708 1%,
    #151515,
    #070708 100%
  );

  --shadow-light:
    hsla(0, 0%, 50%, 0.2) 0px 4px 6px -1px,
    hsla(0, 0%, 50%, 0.1) 0px 2px 4px -1px;
}

*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  list-style: none;
  list-style-type: none;
  text-decoration: none;
}

html {
  font-size: 100%;
  box-sizing: inherit;
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", ui-sans-serif, sans-serif;
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--white-color);
  background-color: var(--background-color);
}

a,
button {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  border: none;
  outline: none;
  color: inherit;
  background: unset;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: inherit;
  line-height: 1.25;
  text-wrap: balance;
  word-wrap: break-word;
}

p,
li {
  font-family: inherit;
  line-height: 1.5;
  overflow-wrap: break-word;
}

img,
svg,
picture {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  object-fit: cover;
}
/*-- -------- - ---------- --->
<---  SECTION & CONTAINER  --->
<--- -------- - ---------- --*/
.ui-section {
  padding-block: 10rem 5rem;
}

.ui-container {
  max-width: 80rem;
  height: auto;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
/*-- -------- - ---------- --->
<---         TEXT          --->
<--- -------- - ---------- --*/
.ui-title {
  font-family: inherit;
  font-size: clamp(2.65rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
}

.ui-subtitle {
  font-family: inherit;
  font-size: clamp(2.05rem, 4vw, 2.875rem);
  font-weight: 600;
  line-height: 1.05;
}

.ui-text {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.ui-subtitle em,
.ui-title em {
  font-style: inherit;
  color: var(--brand-color);
}

/*-- -------- - ---------- --->
<---       BUTTONS         --->
<--- -------- - ---------- --*/
.ui-button {
  display: inline-flex;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  align-items: center;
  white-space: nowrap;
  text-align: center;
  justify-content: center;
  vertical-align: middle;
  column-gap: 0.35rem;
  padding-block: 0.5rem;
  padding-inline: 1.25rem;
  border-radius: 3rem;
  transition: all 300ms ease;
}

.ui-button-primary {
  color: var(--white-color);
  background-image: linear-gradient(
    to top,
    var(--brand-color-dark) 0%,
    var(--brand-color) 80%,
    var(--brand-color-light) 100%
  );
  padding-right: 1.5rem;
  text-shadow: 0 0px 2px var(--black-color-light-opacity);
}

.ui-button-primary:hover {
  animation: brand-pulse 2s infinite;
}

.ui-button-neutral:hover {
  animation: white-pulse 2s infinite;
}

@keyframes brand-pulse {
  0% {
    box-shadow: 0 0 0 0 hsl(49, 99%, 54%, 0.4);
  }

  70% {
    box-shadow: 0 0 0 6px hsl(49, 99%, 54%, 0);
  }

  100% {
    box-shadow: 0 0 0 0 hsl(49, 99%, 54%, 0);
  }
}

@keyframes white-pulse {
  0% {
    box-shadow: 0 0 0 0 hsl(0, 0%, 100%, 0.4);
  }

  70% {
    box-shadow: 0 0 0 6px hsl(0, 0%, 100%, 0);
  }

  100% {
    box-shadow: 0 0 0 0 hsl(0, 0%, 100%, 0);
  }
}
/*-- -------- - ---------- --->
<---    Background Glow    --->
<--- -------- - ---------- --*/

.ui-background-glow {
  position: relative;
  background:
    radial-gradient(
      ellipse 80% 50% at 20% 50%,
      hsl(49 99% 54% / 0.04) 0%,
      transparent 70%
    ),
    linear-gradient(#070708 0%, #0f0f10 50%, #070708 100%);
}

.ui-background-animated-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 80% at 20% 50%,
    hsl(49 99% 54% / 0.05) 0%,
    transparent 65%
  );
  animation: background-glow 10s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.ui-background-animated-right::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 60% at 80% 60%,
    hsl(49 99% 54% / 0.15) 0%,
    transparent 65%
  );
  animation: background-glow 10s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes background-glow {
  0%,
  100% {
    opacity: 0.75;
    transform: translateY(0) scale(1);
  }
  33% {
    opacity: 1;
    transform: translateY(-2.5%) scale(1.1);
  }
}

.ui-background-animated-left > *,
.ui-background-animated-right > * {
  position: relative;
  z-index: 1;
}
