:root {
  --dd-green: #49d75b;
  --dd-teal: #3bbc99;
  --dd-aqua: #2ea5d0;
  --dd-blue: #2390ff;
  --dd-gradient: linear-gradient(120deg, var(--dd-green) 0%, var(--dd-blue) 100%)
}

* {
  box-sizing: border-box;
  font-family: "JetBrains Mono", monospace, sans-serif;
  letter-spacing: -.05em;
  margin: 0;
  padding: 0;
}

@keyframes revolving-gradient {
  0% {
    rotate: 0deg;
  }
  100% {
    rotate: 360deg;
  }
}

@keyframes emission-pulse {
  0% {
    filter: blur(100px);
    opacity: .05;
  }
  100% {
    filter: blur(50px);
    opacity: .2;
  }
}

body {
  background-color: #111111;
}

main {
  position: relative;
  height: calc(100 * var(--real-vh));
  width: 100vw;
}

.grad-border {
  position: absolute;
  inset: 40px;

  .grad-border__source,
  .grad-border__glow {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 100%;
    width: 100%;

    &::before {
      content: "";
      position: absolute;
      inset: calc(50% - 20vmin) -100vmax;
      animation: 10000ms linear revolving-gradient infinite;
      background: linear-gradient(0deg, var(--dd-green) 0%, var(--dd-blue) 100%);
    }

    &::after {
      content: "";
      position: absolute;
      inset: 20px;
      background-color: #111111;
      border-radius: 8px;
    }
  }

  .grad-border__glow {
    position: absolute;
    inset: 0;
    filter: blur(15px);
    opacity: .5;
  }
}

.content {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: 24px;
  padding: 60px;
  position: relative;
  z-index: 10;

  img {
    height: clamp(36px, 10vw, 96px);
  }

  h1 {
    background: var(--dd-gradient);
    background-clip: text;
    color: transparent;
    font-size: clamp(16px, 3vw, 36px);
    font-weight: 700;
    letter-spacing: 1em;
    margin-left: 3vw;
    text-align: center;
    text-wrap: nowrap;
    text-transform: uppercase;
    width: fit-content;
  }

  &::before {
    content: "";
    position: absolute;
    inset: calc(50% - 5vmin) calc(50% - 25vmin);
    animation: 2000ms ease-in-out emission-pulse infinite alternate;
    background: var(--dd-gradient);
    border-radius: 100vmax;
    filter: blur(100px);
    opacity: .05;
    z-index: -1;
  }
}

@media screen and (max-width: 500px) {
  .grad-border {
    inset: 10px;
  }
}
