:root {
  --overlay-opacity: 0.75;
  --video-blur: 200px;
  --header-glass-opacity: 0;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body {
  overflow-x: hidden;
  background: #000;
  color: #fff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.background__video {
  position: absolute;
  inset: -8%;
  width: 115%;
  height: 115%;
  object-fit: cover;
  filter: blur(var(--video-blur));
  transform: translateZ(0);
}

.background__dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--overlay-opacity));
}

.site-header,
.site-footer {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.site-header {
  top: 24px;
  width: min(740px, calc(100vw - 40px));
  height: 64px;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -6px;
  width: calc(100% + 6px);
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.20);
  -webkit-backdrop-filter: blur(12.5px);
  backdrop-filter: blur(12.5px);
  opacity: var(--header-glass-opacity);
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.site-footer {
  width: min(720px, calc(100vw - 40px));
  bottom: 24px;
}

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  padding: 0 10px;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: inline-flex;
}

.logo {
  width: 124px;
  height: 32px;
  display: block;
  object-fit: contain;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-link {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 500;
  line-height: 125%;
  letter-spacing: -2%;
  text-decoration: none;
  padding-bottom: 2px;
}

.download-button {
  --icon: 24px;
  --gap: 6px;
  --pad-right: 16px;
  --swap-duration: 0.35s;
  --swap-ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  gap: var(--gap);
  padding: 10px 16px 9px 12px;
  border-radius: 12px;
  background: #fff;
  color: #151515;
  font-size: 15px;
  font-weight: 500;
  line-height: 125%;
  letter-spacing: -1%;
  text-decoration: none;
}

.download-button img {
  width: var(--icon);
  height: var(--icon);
  display: block;
}

.btn__slot-left {
  width: var(--icon);
  height: var(--icon);
  flex: 0 0 var(--icon);
  display: grid;
  place-items: center;
  pointer-events: none;
}

.btn__icon-left {
  transition:
    transform var(--swap-duration) var(--swap-ease),
    opacity var(--swap-duration) var(--swap-ease);
}

.btn__label {
  transition: transform var(--swap-duration) var(--swap-ease);
}

.btn__icon-right {
  position: absolute;
  right: var(--pad-right);
  top: 50%;
  transform: translateY(-50%) translateX(12px);
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--swap-duration) var(--swap-ease),
    opacity var(--swap-duration) var(--swap-ease);
}

.btn-swap-has-left:hover .btn__icon-left,
.btn-swap-has-left:focus-visible .btn__icon-left {
  opacity: 0;
  transform: translateX(-12px);
}

.btn-swap-has-left:hover .btn__label,
.btn-swap-has-left:focus-visible .btn__label {
  transform: translateX(calc(-1 * (var(--icon) + var(--gap)) + 2px));
}

.btn-swap:hover .btn__icon-right,
.btn-swap:focus-visible .btn__icon-right {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.hero {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  z-index: 5;
  pointer-events: none;
}

.hero-text {
  margin: 0;
  width: min(1120px, 100%);
  color: rgba(255, 255, 255, 0.02);
  font-size: 44px;
  font-weight: 500;
  line-height: 120%;
  letter-spacing: -3%;
}

.hero-line {
  display: block;
}

.hero-word {
  display: inline-flex;
  white-space: nowrap;
}

.hero-char {
  display: inline-block;
  color: #fff;
  opacity: 0.05;
  will-change: opacity;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links .footer-link-mobile {
  display: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 500;
  line-height: 125%;
  letter-spacing: -2%;
  position: relative;
  display: inline-block;
  padding-bottom: 3px;
  text-decoration: none;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 1px;
  right: 0px;
  bottom: -1px;
  height: 5px;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 1.1px,
    transparent 1.4px
  );
  background-size: 4.5px 4.5px;
  background-repeat: space no-repeat;
  background-position: left bottom;
}

.footer-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 16px;
  font-weight: 500;
  line-height: 125%;
  letter-spacing: -2%;
}

.scroll-track {
  height: 10000px;
}

@media (max-width: 900px) {
  .site-header {
    width: min(740px, calc(100vw - 24px));
  }

  .site-footer {
    width: min(720px, calc(100vw - 24px));
  }

  .hero-text {
    font-size: clamp(30px, 7vw, 40px);
  }
}

@media (max-width: 768px) {
  .site-header {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 88px;
  }

  .site-header::before {
    top: 14px;
    bottom: auto;
    left: 14px;
    right: 14px;
    width: auto;
    height: 64px;
  }

  .header-inner {
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px 24px 0 26px;
  }

  .logo-link {
    margin-top: 6px;
  }

  .header-link {
    display: none;
  }

  .hero {
    padding: 20px 32px;
  }

  .hero-text {
    width: min(364px, calc(100vw - 64px));
    font-size: 38px;
    line-height: 115%;
  }

  .hero-line {
    display: inline;
  }

  .hero-line:not(:last-child)::after {
    content: " ";
  }

  .footer-links .footer-link-mobile {
    display: inline-block;
  }
}
