:root {
  color-scheme: dark;
  --coreup-blue: #2d3bdc;
  --ink: #050508;
  --text: #f7f7fb;
  --muted: rgba(247, 247, 251, 0.68);
  --hairline: rgba(247, 247, 251, 0.18);
  --pointer-x: 0px;
  --pointer-y: 0px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ink);
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--text);
  font-family: "Google Sans Flex", "Google Sans Flex Variable", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-optical-sizing: auto;
  letter-spacing: 0;
  isolation: isolate;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 6px;
}

.stage,
.background-plane,
.light-wash,
.scanlines,
.brand-echo {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.stage {
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 54%, rgba(45, 59, 220, 0.24), transparent 34rem),
    #050508;
}

.background-plane {
  width: calc(100% + 56px);
  height: calc(100% + 56px);
  margin: -28px;
  background-image: image-set(
    url("assets/background-desktop.jpg") 1x,
    url("assets/background-desktop.jpg") 2x
  );
  background-position: 58% center;
  background-size: cover;
  filter: saturate(1.16) contrast(1.08) brightness(0.78);
  transform: translate3d(var(--pointer-x), var(--pointer-y), 0) scale(1.035);
  animation: drift 20s ease-in-out infinite alternate;
  will-change: transform;
}

.light-wash {
  background:
    linear-gradient(90deg, rgba(5, 5, 8, 0.9) 0%, rgba(5, 5, 8, 0.66) 34%, rgba(5, 5, 8, 0.1) 74%),
    linear-gradient(0deg, rgba(5, 5, 8, 0.78) 0%, transparent 38%, rgba(5, 5, 8, 0.48) 100%);
}

.scanlines {
  opacity: 0.28;
  mix-blend-mode: soft-light;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.12) 0,
      rgba(255, 255, 255, 0.12) 1px,
      transparent 1px,
      transparent 5px
    );
}

.brand-echo {
  inset: auto -5vw -11vh auto;
  width: 44vw;
  min-width: 34rem;
  max-width: 48rem;
  height: auto;
  opacity: 0.13;
  filter: blur(0.2px) drop-shadow(0 0 70px rgba(45, 59, 220, 0.45));
  transform: translate3d(calc(var(--pointer-x) * -0.8), calc(var(--pointer-y) * -0.8), 0);
}

.site-header,
.site-footer {
  position: fixed;
  left: 48px;
  right: 48px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  top: 42px;
}

.site-footer {
  bottom: 34px;
  color: rgba(247, 247, 251, 0.58);
  font-size: 0.82rem;
}

.site-footer a {
  transition: color 180ms ease;
}

.site-footer a:hover {
  color: var(--text);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: 112px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 20px rgba(45, 59, 220, 0.28));
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 136px 48px 112px;
}

.hero-copy {
  width: min(760px, 100%);
}

h1 {
  max-width: 8.4ch;
  margin: 0;
  color: var(--text);
  font-size: 7rem;
  line-height: 0.92;
  font-weight: 760;
  letter-spacing: 0;
  text-wrap: balance;
}

.intro {
  max-width: 35rem;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 1.14rem;
  line-height: 1.65;
}

@keyframes drift {
  0% {
    transform: translate3d(var(--pointer-x), var(--pointer-y), 0) scale(1.035);
  }

  100% {
    transform: translate3d(calc(var(--pointer-x) - 14px), calc(var(--pointer-y) + 10px), 0) scale(1.055);
  }
}

@media (max-width: 980px) {
  .site-header,
  .site-footer {
    left: 32px;
    right: 32px;
  }

  h1 {
    font-size: 5.5rem;
  }

  .hero-copy {
    width: min(680px, 100%);
  }
}

@media (max-width: 720px) {
  .background-plane {
    background-image: image-set(
      url("assets/background-mobile.jpg") 1x,
      url("assets/background-mobile.jpg") 2x
    );
    background-position: center center;
  }

  .light-wash {
    background:
      linear-gradient(180deg, rgba(5, 5, 8, 0.84) 0%, rgba(5, 5, 8, 0.5) 42%, rgba(5, 5, 8, 0.88) 100%),
      linear-gradient(90deg, rgba(5, 5, 8, 0.66), rgba(5, 5, 8, 0.14));
  }

  .brand-echo {
    right: -38vw;
    bottom: -7vh;
    width: 112vw;
    min-width: 0;
    opacity: 0.11;
  }

  .site-header {
    top: 28px;
  }

  .site-header,
  .site-footer {
    left: 22px;
    right: 22px;
  }

  .site-footer {
    bottom: 22px;
    font-size: 0.78rem;
  }

  .hero {
    align-items: flex-end;
    padding: 116px 22px 92px;
  }

  .hero-copy {
    width: 100%;
  }

  h1 {
    max-width: 7.7ch;
    font-size: 3.9rem;
    line-height: 0.96;
  }

  .intro {
    max-width: 30rem;
    margin-top: 24px;
    font-size: 1rem;
    line-height: 1.58;
  }

}

@media (max-width: 390px) {
  h1 {
    font-size: 3.35rem;
  }

  .brand-logo {
    width: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .background-plane,
  .brand-echo {
    transform: none !important;
  }
}
